package com.fillifesoft.magicHitter.output;

import org.apache.ibatis.session.SqlSession;

import com.fillifesoft.magicHitter.manager.SessionManager;
import com.fillifesoft.magicHitter.model.ResultVo;

public class MybatisImpl implements Output {
	
	private SqlSession session = null;
	
	public MybatisImpl() {
		SessionManager mgr = new SessionManager();
		session = mgr.getSqlSession();
	}

	public void print(ResultVo result) throws Exception {
		session.insert("com.fillifesoft.magicHitter.output.mybatis.mapper.h2Mapper.insertGenHistory", result);
	}
}
